[ "Heading" => "From", ], "ToAddr" => [ "Heading" => "To", ], "Subject" => [ ], "DateSent" => [ "Heading" => "Date Sent", ], ]; # add in template filtering and display when Mailer is enabled if ($GLOBALS["G_PluginManager"]->PluginEnabled("Mailer")) { $ListFields["Template"] = [ "Heading" => "Mailer Template", "Sortable" => false, "ValueFunction" => function ($Item, $FieldName) use ($H_Templates) { $LogData = $Item["LogData"]; if (strlen($LogData) == 0) { return ""; } $LogData = unserialize($LogData); if (!isset($LogData["TemplateId"])) { return ""; } return $H_Templates[$LogData["TemplateId"]]; } ]; } # create and display list UI $ListUI = new ItemListUI($ListFields); $ListUI->Heading("Sent Email Log"); $ListUI->ItemsPerPage($H_ItemsPerPage); $ListUI->BaseLink($H_BaseLink); $OptList = new HtmlOptionList("TID", $H_Templates, $H_SelectedTemplate); $OptList->SubmitOnChange(true); ?>
PluginEnabled("Mailer")) { ?> Template: GetHtml() ?> Search:
Display($H_EmailList, $H_TotalItems); ?>